<?php

use yii\db\Migration;

/**
 * Class m200626_085238_add_field_limitStr_to_user
 */
class m200626_085238_add_field_limitStr_to_user extends Migration
{
    public function safeUp()
    {
        $this->execute('ALTER TABLE {{%user}} ADD `limitStr` VARCHAR (50) COMMENT "权限控制字符串"');
    }

    public function safeDown()
    {
        $this->dropColumn('{{%user}}', 'limitStr');
    }
}
